package dhu.cst.jnlwt.jiangnan181310209liwanting181310302.tally.activity_login;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.ImageView;
import android.widget.TextView;

import dhu.cst.jnlwt.jiangnan181310209liwanting181310302.tally.R;

public class WelcomeActivity extends AppCompatActivity {

    ImageView img;
    private Handler handler = new Handler(){
        @Override
        public void handleMessage(@NonNull Message msg) {
            switch (msg.what){
                case 1:
                    startActivity(new Intent(WelcomeActivity.this,VerificationLoginActivity.class));
                    WelcomeActivity.this.finish();
                    break;
                case 2:
                    break;
                default:
                    break;
            }
        }
    };
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        TextView textView = findViewById(R.id.slogan);
        Typeface typeface = Typeface.createFromAsset(getAssets(),"myFont.ttf");
        textView.setTypeface(typeface);
        handler.sendEmptyMessageDelayed(1,1000*3);
    }
}